<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Our Love Story</title>
<!--
	    <embed src="qfl001.mp3" hidden="true" autostart="true" loop="true">
-->
<!--
		<embed class="videoPlay" src="qfl001.mp3" type="video/mp4" autostart="true" />
-->

<!--	<audio id="audio" autoplay="autoplay"  loop="loop">
		<source src="qfl001.mp3" type="audio/mpeg" />
		Your browser does not support the audio element.
	</audio>-->
	<audio  id="audio" autoplay="autoplay"  loop="loop">
		<source src="qfl001.mp3" type="audio/mpeg" />
		Your browser does not support the audio element.
	</audio>


	<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
	<style type="text/css">
		@font-face {
			font-family: digit;
			src: url('digital-7_mono.ttf') format("truetype");
		}
	</style>
	<link href="css/default.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/garden.js"></script>
    <script type="text/javascript" src="js/functions.js"></script>
    <script type="text/javascript" src="js/audiojs/audio.min.js"></script>
</head>

<body>
	<div id="mainDiv">
		<div id="content">
			<div id="code">
				<span class="space"/>我会牵着你的手，走到我们满头白发的那一天<br />
				<span class="space"/>我会守护你生命里的精彩，并陪伴你一路精彩下去<br />
				<span class="space"/>你的幸福快乐，是我一生的追求<br />
				<span class="space"/>我会带你去所有你想去的地方，陪你闹看你笑<br />

				<span class="space"/>历经你生命中所有的点点滴滴，期待这一生与你一起走过<br />
				<span class="space"/>期待与你慢慢变老，等我们老到哪儿也去不了<br />
				<span class="space"/>还能满载着一生的幸福快乐<br />
				<span class="space"/>我愿意爱你直到老去，我会为我们的未来撑起一片天空<br />
				<span class="space"/>为我们的将来担负起一生的责任<br />
				<span class="space"/>愿意为你去做每一件能让你开心快乐的事<br />
				<span class="space"/>我们经历的点点滴滴，都是我们一辈子最美的回忆</span> <br />
				<span class="space"/>和你在一起这些岁月，我很开心</span> <br />
				<span class="space"/>从学校开始，到现在走出学校，时间流逝的太快</span> <br />
				<span class="space"/>和你在一起的每一天，我都很珍惜，让我有了奋斗的方向</span> <br />
				<span class="space"/>我们都变了，没有了之前的青涩</span> <br />
				<span class="space"/>我对你早已不仅仅是喜欢，你变成了我生活的习惯</span> <br />
				<span class="space"/>变成了我生活的不可缺少一部分</span> <br />
				<span class="space"/>我不是一个不浪漫的人，是一个没情趣的人</span> <br />
				<span class="space"/>和你在一起这么久，没给你什么浪漫，对不起</span> <br />
				<span class="space"/>在我最贫穷最困难的时候，你陪在了我身边</span> <br />
				<span class="space"/>谢谢你，我最爱的宝宝</span> <br />
				<span class="space"/>往后余生，风雨是你，平淡是你，清贫是你</span> <br />
				<span class="space"/>荣华是你，目光所至，也是你</span> <br />
				<br />
			</div>
			<div id="loveHeart">
				<canvas id="garden"></canvas>
				<div id="words">
					<div id="messages">
						莹,我爱你！
						<br>
						<br>
						<div id="elapseClock"></div>
					</div>
					<div id="loveu">
						Love u forever and ever.<br/>
						<div class="signature">- lan</div>
					</div>
				</div>
			</div>
		</div>

	</div>
	<script type="text/javascript">

		var offsetX = $("#loveHeart").width() / 2;
		var offsetY = $("#loveHeart").height() / 2 - 55;
		var together = new Date();
		together.setFullYear(2015, 10, 11);
		together.setHours(24);
		together.setMinutes(0);
		together.setSeconds(0);
		together.setMilliseconds(0);

		if (!document.createElement('canvas').getContext) {
			var msg = document.createElement("div");
			msg.id = "errorMsg";
			msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
			document.body.appendChild(msg);
			$("#code").css("display", "none")
			$("#copyright").css("position", "absolute");
			$("#copyright").css("bottom", "10px");
		    document.execCommand("stop");
		} else {
			setTimeout(function () {
				startHeartAnimation();
			}, 500);

			timeElapse(together);
			setInterval(function () {
				timeElapse(together);
			}, 500);

			adjustCodePosition();
			$("#code").typewriter();
		}
	</script>

</body>
</html>
